The Jammu and Kashmir police has detained Parandeep Singh, a daily wager with the public health department who allegedly provided shelter to two fidayeens who carried out the suicide attack in Srinagar on Wednesday, killing five Central Reserve Police Force men.